package com.swjd.sell.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.swjd.sell.dto.OrderDTO;

/**
 * @author 刘涛
 * @create 2021/8/27 22:41
 */
public interface OrderService {
    /**
     * 创建订单
     */
    public OrderDTO create(OrderDTO orderDTO);

    /**
     * 查询单个订单
     */
    public OrderDTO selectById(String orderId);

    /**
     * 根据微信号分页查询订单列表
     */
    public IPage<OrderDTO> selectByBuyerOpenId(String buyerOpenid, Page page);

    /**
     * 取消订单
     */
    public OrderDTO cancelOrder(OrderDTO orderDTO);

    /**
     * 完结订单
     */
    public OrderDTO finishOrder(OrderDTO orderDTO);

    /**
     * 支付订单
     */
    public OrderDTO paidOrder(OrderDTO orderDTO);

}
